package com.xjtu.conan.service;

import com.xjtu.conan.entity.ArticleImagesInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.UserInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 话题图片表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface ArticleImagesInfoService extends IService<ArticleImagesInfo> {
    public List<ArticleImagesInfo> getAllArticleImageInfo(int current, int size);

    public ArticleImagesInfo getArticleImageByid(Long aiid);

    public int addArticleImages(MultipartFile[] images, Long nid, UserInfo loginUser) throws IOException;

    public List<ArticleImagesInfo> getArticleImagesByaid(Long aid);

    public int deleteArticleImages(Long aiid);

    public int getTotal();
}
